<?php

namespace app\common\library;

class ReFail extends YuResult
{

    public static $instance ;

    /**
     * @title 单例调用
     * @description 单例调用
     * @author Admin ldy
     * @time 2018/9/25  12:22
     */
    public static function getInstance(){
        if (ReFail::$instance == null){
            ReFail::$instance = new \app\common\library\ReFail;
            return ReFail::$instance;
        }else{
            return ReFail::$instance;
        }
    }

    public function __construct($msg='',$data=null,$code=0,$status=1){
        parent::__construct($msg,$data,0,0);
    }

}
